﻿using System.Web.Mvc;

namespace BoneSystem.Extensions.Annotations.InputTypeAnnotations
{
    public class NumberAttribute : InputAttribute, IInputPathernAttribute
    {
        public float Min { get; set; }
        public float Max { get; set; }
        public string Pathern { get; set; }
        public override TagBuilder TagBuilder()
        {
            var tag = base.TagBuilder();
            //tag.Attributes["type"] = "number";
            tag.Attributes["data-mask"] = "#.##0,00";
            tag.Attributes["data-mask-reverse"] = "true";
            tag.Attributes["data-mask-maxlength"] = "false";
            tag.Attributes["style"] = "text-align: right";
            return tag;
        }


    }
}
